#include <iostream>
#include <algorithm>

using namespace std;

int list[100086];

int main(int argc, char const *argv[])
{
    
    cout << sizeof(int[1024][20086]) / 1024 / 1024;

    int t, i;
    
    cin >> t;
    for (i = 0; i < t; i++)
        cin >> list[i];
    
    for (i = 0; i < t - 1; i++)
        cout << (list[i] % 4 ? "October wins!" : "Roy wins!") 
            << endl;     

    cout << (list[t - 1] % 4 ? "October wins!" : "Roy wins!");

    return 0;
}
